<!DOCTYPE html>
<html>
<head>
<title>基础管理类-不符合项汇总</title>
<meta content="" name="keywords" />
<meta content="" name="description" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no" />
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/esignDemo.css" />
<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="/js/esign.js"></script>
</head>
<body style="background: #F2F2F2;">
	<?php $i = 1 ?>
	@foreach($infos as $info)
	<ul class="noaccord">
		<li>
			<span>{{$i}} {{$info->entry}}</span>
			<a class="red" href="/check/del/{{$info->detailId}}">删  除</a>
		</li>

	</ul>
	<?php $i++; ?>
	@endforeach

<!--签名-->
 <div class="canvasDiv">
        <div id="editing_area">
            <canvas width="700" height="250" id="canvasEdit"></canvas>
        </div>
    </div>

    <div class="imgDiv">
        <span id="sign_show"></span>
    </div>

    <div class="btnDiv">
        <a id="sign_clear" class="clearBtn">清除</a>
        <a id="sign_ok" class="okBtn">确认</a>

    </div>

<!--<script type="text/javascript" src="esign.js"></script>-->
<script type="text/javascript">
    $(function(){
        //初始化动作，根据DOM的ID不同进行自定义，如果不写则内部默认取这四个
        $().esign("canvasEdit", "sign_show", "sign_clear", "sign_ok");
    });



//	    $('#sign_ok').click(function() {
//// 		    alert($('#sign_show img').attr("src"))
//
// 		    $("#tijiao").val($('#sign_show img').attr("src"))
////			$.ajax({
////
////				type: "post",//方法类型weigner
////				dataType: "json",//预期服务器返  回的数据类型
////				url: "/check/getChecknegative/"+checkid ,//url
////				data: 1,
////				success: function (result) {
////					
////				},
////				error : function() {
////					alert("数据读取异常！");
////				}
////			});
//
//	    });







</script>
<!--签名-->


	<form action="/check/signature" method="post">
		{{ csrf_field() }}
<input class="tijiao" id="beijiancharen" name="imgbase" type="hidden" value="" />
<input  name="id" type="hidden" value="{{$id}}" />
<input class="qrtj" type="submit" name="" value="确认提交" />
</form>	



	<!-- 弹窗 -->
	<div id="goodcover2"></div>
	<div id="code22">
		<div class="close1"><a href="javascript:void(0)" id="closebt2"><img src="images/close.gif"></a></div>
	    <form action="" method="" class="goodtxt">
	    	<textarea style="margin: 10px 0 20px 0">1 安全风险管理、隐患排査治理</textarea>
			<input type="submit" name="" value="提交" />
	    </form>
	</div>

	<script>
		$(function() {
		    //alert($(window).height());
		    $('#ClickMe2').click(function() {
		        $('#code22').center();
		        $('#goodcover2').show();
		        $('#code22').fadeIn();
		    });
		    $('#closebt2').click(function() {
		        $('#code22').hide();
		        $('#goodcover2').hide();
		    });
			$('#goodcover2').click(function() {
		        $('#code22').hide();
		        $('#goodcover2').hide();
		    });
		    /*var val=$(window).height();
			var codeheight=$("#code").height();
		    var topheight=(val-codeheight)/2;
			$('#code').css('top',topheight);*/
		    jQuery.fn.center = function(loaded) {
		        var obj = this;
		        body_width = parseInt($(window).width());
		        body_height = parseInt($(window).height());
		        block_width = parseInt(obj.width());
		        block_height = parseInt(obj.height());

		        left_position = parseInt((body_width / 2) - (block_width / 2) + $(window).scrollLeft());
		        if (body_width < block_width) {
		            left_position = 0 + $(window).scrollLeft();
		        };

		        top_position = parseInt((body_height / 2) - (block_height / 2) + $(window).scrollTop());
		        if (body_height < block_height) {
		            top_position = 0 + $(window).scrollTop();
		        };

		        if (!loaded) {

		            obj.css({
		                'position': 'absolute'
		            });
		            obj.css({
		                'top': ($(window).height() - $('#code22').height()) * 0.5,
		                'left': left_position
		            });
		            $(window).bind('resize', function() {
		                obj.center(!loaded);
		            });
		            $(window).bind('scroll', function() {
		                obj.center(!loaded);
		            });

		        } else {
		            obj.stop();
		            obj.css({
		                'position': 'absolute'
		            });
		            obj.animate({
		                'top': top_position
		            }, 200, 'linear');
		        }
		    }

		})
	</script>
</body>
</html>